package com.ruoyi.project.video.videostream.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.video.videostream.mapper.VideostreamMapper;
import com.ruoyi.project.video.videostream.domain.Videostream;
import com.ruoyi.project.video.videostream.service.IVideostreamService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 视频直播流Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
@Service
public class VideostreamServiceImpl implements IVideostreamService 
{
    @Autowired
    private VideostreamMapper videostreamMapper;

    /**
     * 查询视频直播流
     * 
     * @param StreamID 视频直播流主键
     * @return 视频直播流
     */
    @Override
    public Videostream selectVideostreamByStreamID(Long StreamID)
    {
        return videostreamMapper.selectVideostreamByStreamID(StreamID);
    }

    /**
     * 查询视频直播流列表
     * 
     * @param videostream 视频直播流
     * @return 视频直播流
     */
    @Override
    public List<Videostream> selectVideostreamList(Videostream videostream)
    {
        return videostreamMapper.selectVideostreamList(videostream);
    }

    /**
     * 新增视频直播流
     * 
     * @param videostream 视频直播流
     * @return 结果
     */
    @Override
    public int insertVideostream(Videostream videostream)
    {
        return videostreamMapper.insertVideostream(videostream);
    }

    /**
     * 修改视频直播流
     * 
     * @param videostream 视频直播流
     * @return 结果
     */
    @Override
    public int updateVideostream(Videostream videostream)
    {
        return videostreamMapper.updateVideostream(videostream);
    }

    /**
     * 批量删除视频直播流
     * 
     * @param StreamIDs 需要删除的视频直播流主键
     * @return 结果
     */
    @Override
    public int deleteVideostreamByStreamIDs(String StreamIDs)
    {
        return videostreamMapper.deleteVideostreamByStreamIDs(Convert.toStrArray(StreamIDs));
    }

    /**
     * 删除视频直播流信息
     * 
     * @param StreamID 视频直播流主键
     * @return 结果
     */
    @Override
    public int deleteVideostreamByStreamID(Long StreamID)
    {
        return videostreamMapper.deleteVideostreamByStreamID(StreamID);
    }
}
